package org.ccay.registry.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.ccay.core.registry.RegistryItem;

/**
 * 
 * 
 * @since 2011-10-20
 */
public interface IRegistryDao {

	/**
	 * 根据名称删除值
		 * @param name
	 */
	public void deleteRegistry(@Param("name")String name,@Param("appName")String appName);

	/**
	 * 创建注册项
	 * @param item
	 */
	public void insertRegistry(@Param("item")RegistryItem item,@Param("appName")String appName);

	/**
	 * 查找注册项
	 * @param registryName
	 * @return 注册项
	 */
	public RegistryItem findRegistry(@Param("name")String registryName,@Param("appName")String appName);
	
	/**
	 * 查找所有注册项
	 * @return
	 */
	public List<RegistryItem> findAll(@Param("appName")String appName);

}
